//package com.fecean.aabbc.netty.server.prod4;
//
//import com.fecean.aabbc.netty.message4.MessageHeartbeat;
//import io.netty.channel.ChannelHandler;
//import io.netty.channel.ChannelHandlerContext;
//import io.netty.channel.SimpleChannelInboundHandler;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
///**
// ** 服务端心跳通道处理，目前处理是把消息原样发回给客户端
// *
// * @author: chenfenghai
// * @version: 1.0
// * @date: 2020-03-05 15:59
// * @blame Team
// */
//@Slf4j
//@Component
//@ChannelHandler.Sharable
//public class NettyServerHeartbeatHandler extends SimpleChannelInboundHandler<MessageHeartbeat> {
//
//    @Override
//    protected void channelRead0(ChannelHandlerContext ctx, MessageHeartbeat messageHeartbeat) throws Exception {
//        log.info("客户端[{}-{}]收到心跳：{}",
//                messageHeartbeat.getTenantId(), messageHeartbeat.getCinemaCode(), messageHeartbeat);
//        ctx.channel().writeAndFlush(messageHeartbeat);
//    }
//}
